package appapi.Request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 告警台账
 * 
 * @author lc
 * @version 1.0
 * @date 2023-05-12 18:19:10
 */
@ApiModel
@Data
@NoArgsConstructor
public class AlarmledgerReq {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "记录ID")
	private Long alarmId;

	@ApiModelProperty(value = "设备类型")
	private Long equipType;

	@ApiModelProperty(value = "设备ID")
	private Long equipId;

	@ApiModelProperty(value = "设备编号")
	private String equipNo;

	@ApiModelProperty(value = "告警类型")
	private Integer alarmType;

	@ApiModelProperty(value = "告警数量")
	private Long alarmNum;

	@ApiModelProperty(value = "累计次数")
	private Long alarmTotal;

	@ApiModelProperty(value = "0-已处理;1-未处理")
	private Integer alarmHandle;

	@ApiModelProperty(value = "处理人")
	private String handler;

	@ApiModelProperty(value = "处理意见")
	private String handleNote;

	@ApiModelProperty(value = "违规人")
	private String violator;

	@ApiModelProperty(value = "告警日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime alarmDate;

	@ApiModelProperty(value = "添加时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createDate;

}
